package com.hangxintong.controller;

import com.hangxintong.common.utils.Result;
import com.hangxintong.service.MsgLoginService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Slf4j
@RestController
@CrossOrigin(origins = "*", maxAge = 3600)
@RequestMapping("/msgFeign")
@Api(tags = "消息Feign")
public class MessageFeignController {
    @Resource
    MsgLoginService msgLoginService;

    @ApiOperation(value = "添加新会员单位账号", notes = "添加新会员单位账号", httpMethod = "GET")
    @GetMapping(value="updateMemberCompany")
    public Result updateMemberCompany() {
        msgLoginService.updateMemberCompanyService();
        return Result.ok();
    }
}
